<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>api文档</title>
    <link rel="icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" href="css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="css/apidocs.css"/>
</head>
<body>
    <div class="containt">
        <div class="menu">
            <div class="menu-content">
                <h3 class="menu-title">新智数信API</h3>
                <ul class="menu-list" id="menuList">
                    <li><a href="#commonReq">公共请求参数</a></li>
                    <li><a href="#commonRes">公共响应参数</a></li>
                </ul>
            </div>
        </div>
        <div class="content" id="apiContent">
            <div class="pad-group">
                <h3 class="title" id="commonReq">
                    公共请求参数
                </h3>
                <div>
                    <table class="inline">
                        <thead>
                        <tr>
                            <th>参数</th>
                            <th>类型</th>
                            <th>是否必填</th>
                            <th>最大长度</th>
                            <th>描述</th>
                            <th width="100">示例值</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>appId</td>
                            <td>String</td>
                            <td>是</td>
                            <td>20</td>
                            <td>合作方唯一标识，初期由新智数信直接给出</td>
                            <td>181309012010</td>
                        </tr>
                        <tr>
                            <td>productCode</td>
                            <td>String</td>
                            <td>是</td>
                            <td>20</td>
                            <td>产品code，与合同编号相同，初期由新智数信直接给出</td>
                            <td>ecejk0081092515</td>
                        </tr>
                        <tr>
                            <td>timestamp</td>
                            <td>String</td>
                            <td>是</td>
                            <td>18</td>
                            <td>时间戳，有调用方生成</td>
                            <td>2018101615592454</td>
                        </tr>
                        <tr>
                            <td>version</td>
                            <td>String</td>
                            <td>是</td>
                            <td>3</td>
                            <td>调用的接口版本，固定为：1.0</td>
                            <td>1.0</td>
                        </tr>
                        <tr>
                            <td>signature</td>
                            <td>String</td>
                            <td>是</td>
                            <td>32</td>
                            <td>数据签名，签名规则：<br/>1、非空参数参与签名；<br/>
                                2、业务参数按照参数key升序；<br/>3、业务参数采取参数名=参数值，中间用&amp;拼接；<br/>
                                4、md5("appId="+appId+"&amp;productCode="+<br/>+productCode+"&amp;"+<font color="red">按key升序后的业务参数</font>+"&amp;version=1.0"+<br/>+"&amp;timestamp="+timestamp+"&amp;appSecret="+appSecret)
                            </td>
                            <td>
                                md5("appId=181309012010&amp;"+<br/>"productCode=ecejk0081092515&amp;"+<br/>"<font color="red">cardNumber=533527198909218&amp;name=杨正祥</font>"+<br/>"&amp;version=1.0&amp;timestamp=2018101615592454&amp;"+<br/>"appSecret=cc257286ce204071ae0d911438f1c5d4")
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <h3 class="title margin_top_15" id="commonRes">
                    公共响应参数
                </h3>
                <div>
                    <table class="inline">
                        <thead>
                        <tr>
                            <th>参数</th>
                            <th>类型</th>
                            <th>是否必填</th>
                            <th>描述</th>
                            <th>示例值</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>code</td>
                            <td>String</td>
                            <td>是</td>
                            <td>网关返回码，详细请参考具体接口文档</td>
                            <td>200</td>
                        </tr>
                        <tr>
                            <td>msg</td>
                            <td>String</td>
                            <td>是</td>
                            <td>返回结果描述</td>
                            <td>操作成功</td>
                        </tr>
                        <tr>
                            <td>data</td>
                            <td>JSON</td>
                            <td>否</td>
                            <td>返回数据，具体返回内容详见具体接口文档</td>
                            <td>"data": {
                                "bizNo": "ZM201810163000000050500254477756",<br/>
                                "merchantId": "2088711826809769"
                                }
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <script type="application/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="application/javascript" src="js/init.js"></script>
</body>
</html>
